#! /bin/bash
ERROR=1;
num=$1;

if [ -z "$num" ] ; then
    echo 'Need a paramter'
else
    if [[ ! $num =~ ^[0-9]+$ ]]; then
        echo 'The input parameter is not a number.'
        ERROR=1;
    else
        ERROR=0;
    fi
fi
exit $ERROR



